Business
Jobs
  • About Us
  • Solutions
    • Job Postings
      Post your job and receive qualified candidates in 48h.
    • Candidate Assessments
      500+ technical and psychological tests, plus anti-fraud.
    • Headhunting
      Tailor-made executive search from start to finish.
    • Payroll + EOR
      Payroll dispersal and EOR across 15+ LATAM countries.
  • Pricing
  • Jobs

0

607
Views
Obtuve el código de error "Error de tipo: no se pueden leer las propiedades de nulo (leyendo 'sendTransaction')" al intentar implementar en la red de prueba de goerli

Aquí está mi código hardhat.config.js

 // hardhat.config.js require("@nomiclabs/hardhat-ethers"); require("@nomiclabs/hardhat-waffle"); require("dotenv").config() // You need to export an object to set up your config // Go to https://hardhat.org/config/ to learn more const GOERLI_URL = process.env.GOERLI_URL; const PRIVATE_KEY = process.env.PRIVATE_KEY; /** * @type import('hardhat/config').HardhatUserConfig */ module.exports = { solidity: "0.8.4", networks: { goerli: { url: process.env.GOERLI_URL || "https://eth-goerli.alchemyapi.io/v2/PT8BEXCUKwsfvcBz8y3g7A2V7LdhUKQA", accounts: process.env.PRIVATE_KEY } } };

Y mi secuencia de comandos deployment.js:

 // scripts/deploy.js const hre = require("hardhat"); async function main() { // We get the contract to deploy. const BuyMeACoffee = await hre.ethers.getContractFactory("BuyMeACoffee"); const buyMeACoffee = await BuyMeACoffee.deploy(); await buyMeACoffee.deployed(); console.log("BuyMeACoffee deployed to:", buyMeACoffee.address); } // We recommend this pattern to be able to use async/await everywhere // and properly handle errors. main() .then(() => process.exit(0)) .catch((error) => { console.error(error); process.exit(1); });

Realmente no sé cómo solucionarlo y prácticamente me ha dejado en un bucle. Por favor ayuda. Gracias, soy bastante nuevo en el uso de hardhat y npm. Mi nodo actual v16.13.1 (npm v8.1.2)

about 4 years ago · Juan Pablo Isaza
1 answers
Answer question

0

Hubo un error en el archivo hardhat.config en lugar de las cuentas: proceso.env.PRIVATE_KEY, debería haber sido cuentas: [proceso.env.PRIVATE_KEY]

about 4 years ago · Juan Pablo Isaza Report
Answer question
Find remote jobs

Discover the new way to find a job!

Top jobs
Top job categories
Business
Post vacancy Pricing Sales
Legal
Terms and conditions Privacy policy
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Show me some job opportunities
There's an error!